home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
C and C++
/
Utilities
/
modal-dialog-sample ƒ
/
Dlog.h
< prev
next >
Wrap
Text File
|
1991-10-26
|
634b
|
42 lines
/*
** Project dialog example
** Module Dlog.h
** Author Bernie Wieser ©1991
** Date 10/26/91
**
** Purpose
** Headers for the dialog code.
**
*/
/*
** The control list (only what is used)
*/
enum myControls {
BOKAY = 1,
BCANCEL,
BSAVE,
ETEXTFLD,
ENUMFLD,
END
};
/*
** Easy access control handle array
*/
typedef struct {
Handle harray[END];
} myData, *pMyData;
/*
** Protos.
*/
void GetDHandle( /* get a handle for a dialog control */
DialogPtr dp, /* the dialog */
short item, /* the control */
Handle *handy /* its return handle */
);
void DialogTest( /* Main code */
short dlogid /* Dialog to drive */
);